Last chance! 50% off unlimited learning
Sale ends in
pre.sphere(x, mean.centred=FALSE)
pre.scale(x, mean.centred=FALSE)
If $\mathbf{H}^*$ is the bandwidth matrix for the pre-transformed data and $\mathbf{H}$ is the bandwidth matrix for the original data, then $\mathbf{H}=\mathbf{S}^{1/2} \mathbf{H}^* \mathbf{S}^{1/2}$ or $\mathbf{H} = \mathbf{S}_D^{1/2} \mathbf{H}^*\mathbf{S}_D^{1/2}$ as appropriate.
data(unicef)
unicef <- as.matrix(unicef)
unicef.sp <- pre.sphere(unicef)
unicef.sc <- pre.scale(unicef, mean.centred=TRUE)
var(unicef.sp)
var(unicef.sc)
Run the code above in your browser using DataLab